package cn.wh.scripting.xmltags;

import java.util.List;

/**
 * @Author wh
 * @Description 混合sql 节点
 * @Date 2023/2/14 15:27
 * @Version 1.0
 **/
public class MixedSqlNode implements SqlNode {

    private List<SqlNode> contents;

    public MixedSqlNode(List<SqlNode> contents){
        this.contents=contents;
    }

    @Override
    public boolean apply(DynamicContext context) {
        contents.forEach(node -> node.apply(context));
        return true;
    }
}
